namespace Resharper.Abstractions.CodeDom.Expressions.BinaryExpressions.AdditiveExpressions
{
  using JetBrains.Annotations;
  using JetBrains.ReSharper.Psi.CSharp.Tree;
  using Resharper.Abstractions.CodeDom.Expressions.LiteralExpressions;

  /// <summary>Defines the <see cref="LiteralExpression"/> class.</summary>
  public class AdditiveExpression : BinaryExpression
  {
    #region Constructors and Destructors

    /// <summary>Initializes a new instance of the <see cref="LiteralExpression"/> class.</summary>
    /// <param name="additiveExpression">The expression.</param>
    internal AdditiveExpression([NotNull] IAdditiveExpression additiveExpression) : base(additiveExpression)
    {
    }

    #endregion

    #region Properties

    /// <summary>
    /// Gets the internal additive expression.
    /// </summary>
    [NotNull]
    internal IAdditiveExpression InternalAdditiveExpression
    {
      get
      {
        return (IAdditiveExpression)this.InternalExpression;
      }
    }

    #endregion
  }
}